package com.sdy.supermarket.biz.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sdy.common.model.BizException;
import com.sdy.common.model.Response;
import com.sdy.supermarket.biz.model.GsNavigation;
import com.sdy.mvc.service.BaseService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 韩亚恒
 * @since 2019-07-24
 */
public interface GsNavigationService extends BaseService<GsNavigation> {


    /**
     * 根据ID删除数据，之后修改该与该数据临近数据的排序等级
     *
     * @param Id
     * @return
     */
    int deleteNavigation(Integer Id) throws BizException;


    /**
     * 分页查询
     *
     * @return
     */
    List<GsNavigation> queryAll();


    /**
     * 排序等级提升或降低
     *
     * @param id
     * @param type
     * @return
     */
    int levelUpOrDown(Integer id, Integer type) throws BizException;


    /**
     * 修改&新增导航信息
     *
     * @param gsNavigation
     * @return
     * @throws BizException
     */
    int saveOrUpdateNavigation(GsNavigation gsNavigation) throws BizException;


}
